<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>页面跳转中...</title>
    <script type="text/javascript">
    	var timer,out;
    	window.onload=function(){
    		var objSpan=document.getElementById("spanTime");
    		timer=window.setInterval(function(){
    			var t=parseInt(objSpan.innerHTML);
    			if(t>0){
	    			objSpan.innerHTML=t-1;
    			}
    		},1000);
    		out=window.setTimeout(function(){
    			window.parent.location.href="<%=basePath%>login.jsp";
    		},3000);
    	};
    	window.onunload=function(){
    		window.clearInterval(timer);
    		window.clearTimeout(out);
    	};
    </script>
  </head>
  <body>
  	<center>
	  	<p>由于您长时间未进行任何操作,请重新登录...</p>
	  	<p><span id="spanTime">3</span>秒钟后返回登录页,<a href="login.jsp" target="_parent">立即返回</a></p>
  	</center>
  </body>
</html>
